﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Kay.NetworkHelper.Models;
using Kay.NetworkHelper.Models.Entitys;

namespace Kay.NetworkHelper.Dal
{
    public class UriHistoryDal
    {
        public List<UriHistory> GetAllList()
        {
            using (var db = new MyModelDbContext())
            {
                var query = db.UriHistories.AsQueryable();
                query = query.OrderByDescending(r => r.LastModifyTime);
                return query.ToList();
            }
        }
    }
}
